//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};

//导出
export async function down(params) {
    console.log(params);
    return request({
        url: `admin/bankAccount/downloadTemplate`,
        method: 'GET',
        data: params,
    });
};

export async function importAccount(params) {
    return request({
        url: 'admin/bankAccount/import',
        method: 'POST',
        headers: {
            "Content-type": "application/x-www-form-urlencoded"
        },
        data: params
    });
};
//删除

export async function deleteData(params) {
    return request({
        url: `admin/bankAccount/deleteByPrimaryKey/${params}`,
        method: 'DELETE',
    });
};
//城市与区域级联
export async function regionArea(params) {
    console.log(params)
    return request({
        url: `admin/qrcode/region/area/tree/get`,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
  };
  //查询城市
  export async function getProduct(params) {
    console.log(params)
    return request({
        url: `admin/qrcode/products/by-city`,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
  };

